#ifndef SPHEREBODYSHAPE_H_
#define SPHEREBODYSHAPE_H_

#include "common.h"

#include "BodyShape.h"

namespace physicsworks {

class SphereBodyShape : public BodyShape {
private:
	real radius;
	
public:
	SphereBodyShape(real radius) : radius(radius) {}
	~SphereBodyShape() {}

	AABox getBoundingBox(const vec3& pos, const mat3& ori) const {
		AABox box;
		box.min = pos - radius;
		box.max = pos + radius;
		return box;
	}
};

}

#endif /*SPHEREBODYSHAPE_H_*/
